package cn.broadmax.boot.modules.sys.service;

import cn.broadmax.boot.constant.ThirdAccountType;
import cn.broadmax.boot.modules.sys.entity.SysUserThird;
import cn.broadmax.boot.oauth.OauthLoginResponse;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 第三方平台账户 服务类
 * </p>
 *
 * @author jexx
 * @since 2021-05-13
 */
public interface ISysUserThirdService extends IService<SysUserThird> {

    SysUserThird getByTypeAndThirdUserId(ThirdAccountType type, String thirdUserId);

    SysUserThird getByAccountIdAndType(String accountId, SysUserThird type);

    SysUserThird login(OauthLoginResponse response);


}
